package com.gxa.entity.community;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yjl
 * @since 2022-10-11 10:05:39
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("t_user_apply")
@ApiModel(value = "UserApply对象", description = "")
public class UserApply implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value ="用户申请表主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value ="申请人员姓名")
    @TableField("apply_name")
    private String applyName;

    @ApiModelProperty(value ="申请人员登录密码")
    @TableField("apply_pwd")
    private String applyPwd;

    @ApiModelProperty(value ="性别 (0:女，1：男）")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty(value ="联系电话")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value ="证件号码")
    @TableField("id_number")
    private String idNumber;

    @ApiModelProperty(value ="房屋编号(申请绑定房屋的地址)")
    @TableField("house_num")
    private House house;
//    private Integer houseNum;

    @ApiModelProperty(value ="人员类型（0：租户，1：家庭成员，2：业主）")
    @TableField("owner_type")
    private Integer ownerType;

    @ApiModelProperty(value ="申请时间")
    @TableField(value = "apply_time",fill = FieldFill.INSERT)
    private Date applyTime;

    @ApiModelProperty(value ="申请状态:0:待审核，1：审核通过")
    @TableField("apply_state")
    private Integer applyState;

    @TableLogic(value = "0" ,delval ="1")
    @TableField("deleted")
    private Integer deleted;
}
